<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>for...in...</title>
</head>
<body>
    <script>
        var i=[1,2,3,4,5,6];
        var j;
        for(j in i){
            document.write(i[j]+"<br/>");
        }
    </script>

</body>
</html>